package com.javalab._3object_oriented._3abstract;

/**
 * 加法计算器
 */
public class AddCalculator extends AbstCaculator {
    @Override
    public Double calculate(Double a, Double b) throws Exception {
        validate(a, b);
        return a + b;
    }
}
